import request from '@/utils/request'

// 查询购物车管理列表
export function listCwshoppingcart(query) {
  return request({
    url: '/system/cwshoppingcart/list',
    method: 'get',
    params: query
  })
}

// 查询购物车管理详细
export function getCwshoppingcart(cartId) {
  return request({
    url: '/system/cwshoppingcart/' + cartId,
    method: 'get'
  })
}

// 新增购物车管理
export function addCwshoppingcart(data) {
  return request({
    url: '/system/cwshoppingcart',
    method: 'post',
    data: data
  })
}

// 修改购物车管理
export function updateCwshoppingcart(data) {
  return request({
    url: '/system/cwshoppingcart',
    method: 'put',
    data: data
  })
}

// 删除购物车管理
export function delCwshoppingcart(cartId) {
  return request({
    url: '/system/cwshoppingcart/' + cartId,
    method: 'delete'
  })
}
